<?php

/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

/**
 * Description of User
 *
 * @author Administrator
 */
class User {
    
    private $userName = null;    
    private $userId = null;
    private $customAtr = null;    
    private $role = null;
    private $email = null;
    
    public function User(){
        $this->role = Settings::$roleNoneString;
        $this->userId = Settings::$systemUserId;
    }
    
    public function getUserName(){
        return $this->userName;
    }
    public function getUserId(){
        return $this->userId;
    }   

    public function getRole() {
        return $this->role;
    }

    public function getEmail() {
        return $this->email;
    }

    public function setEmail($email) {
        $this->email = $email;
    }
    
    public function setRole($role) {
        $this->role = $role;
    }
    
    public function setUserId($userId){
        $this->userId = $userId;
    }


    public function isAdmin(){
        return (strstr($this->role,Settings::$roleAdminString));
    }
    
   
}

?>
